package mapper;

import java.util.ArrayList;
import java.util.List;

import osc.OSCMessage;

public class OSC2MIDITranslation {

	List<OSC2MIDIBinding> bindings = new ArrayList<OSC2MIDIBinding>();

	public void translate(OSCMessage message) {
		for (OSC2MIDIBinding binding : bindings) {
			int[] translation = binding.translate(message);
			System.out.println("Target = " + translation[0] + " MIDI Value = " + translation[1]);
		}
	}

	public void addBinding(OSC2MIDIBinding binding) {
		this.bindings.add(binding);
	}
	
}
